package cn.stylefeng.guns.modular.business.controller;

import cn.stylefeng.guns.modular.business.dto.ProjectQuery;
import cn.stylefeng.guns.modular.business.service.ProjectService;
import cn.stylefeng.roses.kernel.rule.pojo.response.ResponseData;
import cn.stylefeng.roses.kernel.rule.pojo.response.SuccessResponseData;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/project")
@Api(tags = "项目管理接口", description = "项目管理相关接口")
public class ProjectController {

    @Autowired
    private ProjectService projectService;

    @GetMapping("/findPage")
    @ApiOperation("分页查询项目接口")
    public ResponseData page(@Validated ProjectQuery projectQuery) {
        return new SuccessResponseData(this.projectService.findPage(projectQuery));
    }




}
